package com.micro.modual.service;


import com.micro.core.resp.RespJsonData;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author LevelCoder
 * @version V1.0.0
 * @email LevelCoder@126.com
 * @date 2020/5/9
 */
public interface UploadService {

    /**
     * <h2>图片上传</h2>
     * @param files             上传的文件
     * @param uploadType        上传的类型
     * @param request           http请求对象
     * @param response          http返回对象
     * @return
     * @throws IOException
     */
    RespJsonData uploadImage(MultipartFile[] files, String uploadType, HttpServletRequest request, HttpServletResponse response) throws IOException;
}
